package cn.jhz.learn.blog.dao.photo;

import cn.jhz.learn.blog.po.photo.BlogPhotoSubfield;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface BlogPhotoSubfieldMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(BlogPhotoSubfield record);

    int insertSelective(BlogPhotoSubfield record);

    BlogPhotoSubfield selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(BlogPhotoSubfield record);

    int updateByPrimaryKey(BlogPhotoSubfield record);

    /*自定义*/
    List<BlogPhotoSubfield> selectByBlogIdOrSubfieldId(@Param("blog_id")Integer blogId,
                                                       @Param("subfield_id") Integer subfieldId,
                                                       @Param("uid")Integer uid);
}